package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

/**
 * 关键字
 *
 * @author luoyong
 */
@Data
@ApiModel("关键字 入参DTO")
public class LyKeywordDTO {

    @ApiModelProperty("ID")
    private Long id;

    @Length(max = 127, message = "关键字长度不能超过127位")
    @NotEmpty
    @ApiModelProperty("关键字")
    private String keyword;

    @Length(max = 255, message = "关键字的跳转链接长度不能超过255位")
    @NotEmpty
    @ApiModelProperty("关键字的跳转链接")
    private String url;

    @NotNull
    @ApiModelProperty("是否是热门关键字")
    private Integer isHot;

    @NotNull
    @ApiModelProperty("是否是默认关键字")
    private Integer isDefault;

    @NotNull
    @ApiModelProperty("排序")
    private Integer sortOrder;

}
